<%@ page import="com.NewsService.NewsService" %>
<%@ page import="com.NewsServiceImpl.NewsServiceImpl" %>
<%@ page import="com.entity.News" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
        <%
            String newsid=  request.getParameter("newsid");
            if(newsid !=null || newsid !=""){
                int num =Integer.parseInt(newsid);
                NewsService service = new NewsServiceImpl();
                News news= service.ServiceSselectById(num);
                session.setAttribute("news",news);
                request.getRequestDispatcher("ModifyNews.jsp").forward(request
        ,response);
            }



        %>
</body>
</html>
